package myoa

import myoa.domain.Trace

class Company extends Trace {
    String name
    String website
    String comment
    static hasMany = [employees: Employee]
    static constraints = {
        name(unique: true, blank: false)  //唯一性不区分大小写
        website(nullable: true, url: true)
        comment(nullable: true)
    }

    static mapping = {
        comment(length: 200)
    }
}